import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPlayerItem } from "../Public/SPlayerItem";
type int = number;
//class SPlayerItemUpdate
    
    export  class SPlayerItemUpdate
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.updateType);
            arg1.writeInt(this.fromPosType);
            arg1.writeInt(this.posIndex);
            arg1.writeInt(this.updateAmount);
            this.playerItem.__write(arg1);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.updateType = arg1.readInt();
            this.fromPosType = arg1.readInt();
            this.posIndex = arg1.readInt();
            this.updateAmount = arg1.readInt();
            this.playerItem = new SPlayerItem();
            this.playerItem.__read(arg1);
            return;
        }

        public /* var */updateType: int;

        public /* var */fromPosType: int;

        public /* var */posIndex: int;

        public /* var */updateAmount: int;

        public /* var */playerItem: SPlayerItem;
    }
